import Layout from '@/layout'

const customerRouter = {
  path: '/customer',
  component: Layout,
  redirect: '/customer/manager',
  name: 'customer',
  meta: {
    title: '客户管理',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/customer/userGroup',
      component: () => import('@/views/customer/userGroup'),
      name: 'userGroup',
      meta: {icon: 'edit', title: '分组管理', roles: ['clinic:info']}
    },
    {
      path: '/customer/manager',
      component: () => import('@/views/customer/index'),
      name: 'customer',
      meta: {icon: 'edit', title: '客户管理', roles: ['clinic:info']}
    },
    {
      path: '/customer/sales',
      component: () => import('@/views/customer/order'),
      name: 'sales',
      meta: {icon: 'edit', title: '消费记录', roles: ['clinic:info']}
    }]
}

export default customerRouter
